package cn.java.threadmodel;

import org.springframework.amqp.rabbit.annotation.Exchange;

import java.util.concurrent.Exchanger;

/**
 * @author 小石潭记
 * @date 2021/12/18 21:01
 * @Description: ${todo}
 */
public class Run {
    public static void main(String[] args) {
        Exchanger<String> exchanger = new Exchanger<>();
        ThreadA a = new ThreadA(exchanger);
        ThreadB b = new ThreadB(exchanger);
        a.start();
        b.start();
    }
}
